<?php
namespace GRH\Model;

class Site
{
    public $site_id;
    public $libelle;
    public $adresse;
    
    public function exchangeArray($data)
    {
        $this->site_id = (isset($data['site_id'])) ? $data['site_id'] : null;
        $this->libelle = (isset($data['libelle'])) ? $data['libelle'] : null;
        $this->adresse = (isset($data['adresse'])) ? $data['adresse'] : null;
    }

    public function getArrayCopy()
    {
        return get_object_vars($this);
    }
}